import javax.swing.plaf.BorderUIResource;

public class Test {
    public static void main(String[] args) {
        int[] arr=new int[]{1,3,4,7,3,1};
        System.out.println(judgment(arr));
    }
    public static boolean judgment(int[] arr){
        int count=0;
        for(int i=0;i<arr.length;i++){
            if(arr[i]%2!=0){
                count++;
            }else{
                count=0;
            }
        }
        if(count==3){
            return true;
        }else{
            return false;
        }
    }
}
